package com.my.thymeleaf.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

@Controller
public class RequestThymleaf {
    @GetMapping("/RequestThymleaf")
    public String RequestThymleaf(HttpServletRequest request, HttpSession session){
        request.setAttribute("java","我想要找到一份实习工作");
        session.setAttribute("C","你一定可以找到的");
        return "RequestThymeleaf";
    }
}
